// import { combineReducers } from 'redux'
import { combineReducers } from '../../myRedux'
import voteReducer from './voteReducer'
import personalReducer from './personalReducer'

/**
 * 合并所有模块的 reducer
 *  + reducer : 是最后合并的总的 reducer
 *  + 此时容器中的公共状态，会按照我们设置的成员名字，分模块进行管理
 *    state = {
 *      vote: {
 *        oppNum: 10,
          supNum: 5
 *      },
        personal: {
          num: 100,
          name: 'mal'
        }
 *    }
 * 
 * 
*/
const reducer = combineReducers({
  vote: voteReducer,
  personal: personalReducer
})

export default reducer